import { handlerGetUrlParams } from '@/utils/dealUrlParams.js'
import request from '@/utils/request'

export function getGuideAndIntroList(param) {
  const url = handlerGetUrlParams('/contentColumn/contentColumn/list', param)
  return request({
    url,
    method: 'GET',
  })
}

export function getGuideAndIntroDetail(ids) {
  return request({
    url: `/contentColumn/contentColumn/${ids}`,
    method: 'GET',
  })
}

export function editGuideAndIntro(data) {
  return request({
    url: `/contentColumn/contentColumn`,
    method: 'PUT',
    data
  })
}